package top.v5it.japi.plus.data.jdbc.service.support;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import top.v5it.japi.plus.data.jdbc.service.JapiJdbcService;
import top.v5it.japi.plus.data.jdbc.service.JapiPagingAndSortingService;

/**
 * @author zhanpu
 * @date 2022/8/4
 */
public class JapiPagingAndSortingSimpleService<J extends PagingAndSortingRepository<T, ID>, T, ID> implements JapiJdbcService<T, ID>, JapiPagingAndSortingService<T, ID> {

    @Autowired
    protected J japiRepository;

    @Override
    public PagingAndSortingRepository<T, ID> getJapiRepository() {
        return japiRepository;
    }
}
